<?php /*a:3:{s:58:"D:\projects\junhe\app\index\view\article\list_product.html";i:1741786051;s:51:"D:\projects\junhe\app\index\view\common\header.html";i:1740139655;s:51:"D:\projects\junhe\app\index\view\common\footer.html";i:1740136709;}*/ ?>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no,mail=yes">

	<title><?php if(isset($article['title'])): ?><?php echo htmlentities($article['title'],ENT_QUOTES); ?> - <?php endif; if(isset($catInfo['title'])): ?><?php echo htmlentities($catInfo['title'],ENT_QUOTES); ?> -
		<?php endif; ?><?php echo htmlentities($config['name'],ENT_QUOTES); ?></title>
	<meta name="keywords"
		content="<?php if(isset($article['keywords'])): ?><?php echo htmlentities($article['keywords'],ENT_QUOTES); elseif(isset($catInfo['keywords'])): ?><?php echo htmlentities($catInfo['keywords'],ENT_QUOTES); else: ?><?php echo htmlentities($config['keyword'],ENT_QUOTES); ?><?php endif; ?>">
	<meta name="description"
		content="<?php if(isset($article['subtitle'])): ?><?php echo htmlentities($article['subtitle'],ENT_QUOTES); elseif(isset($catInfo['desc_text'])): ?><?php echo htmlentities($catInfo['desc_text'],ENT_QUOTES); else: ?><?php echo htmlentities($config['content'],ENT_QUOTES); ?><?php endif; ?>">
	<link rel="shortcut icon" href="<?php echo htmlentities($config['site_icon'],ENT_QUOTES); ?>" type="image/x-icon">
	<script src="/public/home/js/jquery-1.8.3.min.js"></script>
	<link rel="stylesheet" href="/public/home/layui/css/layui.css">
	<link rel="stylesheet" href="/public/home/css/common.css">
	<link rel="stylesheet" href="/public/home/css/hover.css">
	<link rel="stylesheet" href="/public/home/css/index.css">
	<script type="text/javascript" src="/public/home/layui/layui.js"></script>
	<link rel="stylesheet" href="/public/home/css/swiper-bundle.css" />
	<script src="/public/home/js/scrollReveal.js" type="text/javascript"></script>

</head>

<body>
	<header class="header w100">
	
			<div class="layui-main d-flex al-c jc-s">
			
					<div class="d-flex al-c">
						<a href="/" class="logo img_100 mr20 d-fs">
							<img class="" src="<?php echo htmlentities($config['pic'],ENT_QUOTES); ?>">
						</a>
					</div>

					<ul class="d-flex  jc-se al-c layui-nav layui-hide-xs ">
						<li
							class="layui-nav-item <?php if((isset($catTreeList['topCate']['id']) && empty($catTreeList['topCate']['id'])) || !isset($catTreeList['topCate']['id'])): ?>layui-this <?php endif; ?>">
							<a href="/"><?php echo htmlentities($function->getCatInfo('1')['title'],ENT_QUOTES); ?></a>
						</li>

						<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>
							<li
								class="layui-nav-item <?php if((isset($catTreeList['topCate']['id']) && $catTreeList['topCate']['id'] == $navValue['id'])): ?>layui-this <?php endif; ?> ">
								<a href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>" > <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
							</li>
						<?php endforeach; endif; else: echo "" ;endif; ?>

					</ul>
					<div class="layui-hide layui-show-xs-block  ">
						<i lay-on="nav" class="layui-icon layui-icon-spread-left "></i>
					</div>
				
				<div class="d-flex gap20 al-c">
				    <?php if($is_login): ?>
					<a href="/index/member/" class="img_box d-fs">
				        <img src="/public/home/images/user-account.png">
				    </a>
					<?php else: ?> 
					<a href="/login" class="layui-btn br25 login-btn d-fs">登录/注册</a>
					<?php endif; ?>
                    
                    <form action="/index/article/search/">
                        <input name="keyword" value=" <?php if(isset($keyword)): ?><?php echo htmlentities($keyword,ENT_QUOTES); ?><?php endif; ?>" placeholder="输入关键词搜索">
                        <input name="model" value="产品" type="hidden">
                        <button>
                            <img src="/public/home/images/search.png">
                        </button>
                    </form>
				</div>
				
			</div>
	</header>

	<script>
  layui.use(function(){
    var layer = layui.layer;
 
    	
    		var util = layui.util;
			util.on({
				nav: function () {
					layer.open({
						type: 1,
						offset: 'l',
						anim: 'slideRight', // 从左往右
						area: ['200px', '100%'],
						shade: 0.1,
						title: false,
						shadeClose: true,
						closeBtn: 0,
						id: 'ID-demo-layer-direction-l',
						content: `
                <ul class="gary_c3 d-grid gap30  pt40 pb40">
                
                	<li class="pl20 pr20 <?php if((isset($catTreeList['topCate']['id']) && empty($catTreeList['topCate']['id'])) || !isset($catTreeList['topCate']['id'])): ?>layui-this <?php endif; ?>">
							<a href="/"><?php echo htmlentities($function->getCatInfo('1')['title'],ENT_QUOTES); ?></a>
						</li>
						<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>
            			<li
            				class="pl20 pr20 <?php if((isset($catTreeList['topCate']['id']) && $catTreeList['topCate']['id'] == $navValue['id'])): ?>layui-this <?php endif; ?> ">
            				<a <?php if(!$navValue['childList']): ?>href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>" <?php endif; ?>> <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
            			</li>
            		<?php endforeach; endif; else: echo "" ;endif; ?>
            		</ul>
						
                `
					});
				},
			});
    	
  });

	</script>
<!-- 中间区域 -->
<div class="top_box" style="background-image:url( <?php echo htmlentities($catTreeList['topCate']['logo'],ENT_QUOTES); ?>)">

    <h1><?php echo htmlentities($catTreeList['topCate']['title'],ENT_QUOTES); ?></h1>

</div>
<main>
    <div class="product-swiper-box">
        <div class="layui-main d-flex al-c jc-s">
            <div class="prev img_box">
                <img src="/public/home/images/left.png">
            </div>
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                    <?php if(is_array($product_cats) || $product_cats instanceof \think\Collection || $product_cats instanceof \think\Paginator): $i = 0; $__LIST__ = $product_cats;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cats): $mod = ($i % 2 );++$i;?> 
                    <div class="swiper-slide">
                        <a class="item <?php if(isset($cat_id) && $cat_id >0 && $cat_id == $cats['id']): ?> layui-this <?php endif; ?>"  href="/site-List-2-<?php echo htmlentities($cats['id'],ENT_QUOTES); ?>">
                             <div class="img_box img">
                                <img src="<?php echo htmlentities($cats['icon'],ENT_QUOTES); ?>">
                            </div>
                            <p><?php echo htmlentities($cats['title'],ENT_QUOTES); ?></p>
                        </a>
                       
                    </div>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <div class="next img_box">
                <img src="/public/home/images/right.png">
            </div>
        </div>
    </div>

    <section class="pt40">
        <form action="" class="layui-form" onsubmit="return false">
        <div class="layui-main">
            <ul class="mt40 layui-form d-grid grid2 grid-xs1 product-search gap30">
                <li> 
                    <select class="layui-input" lay-filter="category_select" >
                        <?php if(isset($product_cats_childs) && count($product_cats_childs)): ?>
                                <option value="">选择分类</option>
                            <?php if(is_array($product_cats_childs) || $product_cats_childs instanceof \think\Collection || $product_cats_childs instanceof \think\Paginator): $i = 0; $__LIST__ = $product_cats_childs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$childs_cat): $mod = ($i % 2 );++$i;?> 
                                <option <?php if(isset($child_id) && $child_id == $childs_cat['id']): ?> selected <?php endif; ?> value="/site-List-2-<?php echo htmlentities($cat_id,ENT_QUOTES); ?>-<?php echo htmlentities($childs_cat['id'],ENT_QUOTES); ?>">
                                    <?php echo htmlentities($childs_cat['title'],ENT_QUOTES); ?>
                                </option>
                            <?php endforeach; endif; else: echo "" ;endif; ?> 
                        <?php endif; ?> 
                    </select>
                </li>
                <li>
                    <select class="layui-input" lay-filter="category_select_third" >
                        <?php if(isset($product_cats_third) && count($product_cats_third)): ?>
                                    <option value="">选择分类</option>
                                <?php if(is_array($product_cats_third) || $product_cats_third instanceof \think\Collection || $product_cats_third instanceof \think\Paginator): $i = 0; $__LIST__ = $product_cats_third;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$third_cat): $mod = ($i % 2 );++$i;?> 
                                    <option <?php if(isset($third_id) && $third_id == $third_cat['id']): ?> selected <?php endif; ?> value="/site-List-2-<?php echo htmlentities($cat_id,ENT_QUOTES); ?>-<?php echo htmlentities($child_id,ENT_QUOTES); ?>-<?php echo htmlentities($third_cat['id'],ENT_QUOTES); ?>">
                                        <?php echo htmlentities($third_cat['title'],ENT_QUOTES); ?>
                                    </option>
                                <?php endforeach; endif; else: echo "" ;endif; ?> 
                        <?php endif; ?>
                     </select>
                </li>
            </ul>
            <ul class="product-list d-grid grid3 gap40 grid-xs1 mt40">

                <?php if(is_array($goods_list) || $goods_list instanceof \think\Collection || $goods_list instanceof \think\Paginator): $i = 0; $__LIST__ = $goods_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods): $mod = ($i % 2 );++$i;?>
                <!-- <a href="/index/Article/show/cat_id/<?php echo htmlentities($goods['cat_id'],ENT_QUOTES); ?>/id/<?php echo htmlentities($goods['id'],ENT_QUOTES); ?>"> -->
                <a href="/goods-detail-<?php echo htmlentities($goods['id'],ENT_QUOTES); ?>">
                    <div class="img_100 img1">
                        <img src="<?php echo htmlentities($goods['logo'],ENT_QUOTES); ?>">
                    </div>
                    <p style=" white-space: normal;text-align: left;"><?php echo htmlentities($goods['title'],ENT_QUOTES); ?></p>

                </a> 
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>


            <div class="pagenum1">

                <div id="demo-laypage-normal-1"></div>
            </div>
        </div>
    </form>
    </section>
</main>


<script src="/public/home/js/index.js"></script>
<script src="/public/home/js/swiper-bundle.min.js"></script>
<script>
    layui.use(function () {
        var laypage = layui.laypage;
        var form    = layui.form
        // 普通用法
        laypage.render({
            elem: 'demo-laypage-normal-1',
            limit: 6,
            curr : <?php echo htmlentities($page,ENT_QUOTES); ?>,
            count: <?php echo htmlentities($gooods_count,ENT_QUOTES); ?>,
            jump: function(obj, first){
                // obj 包含了当前分页的所有参数
                let page = obj.curr;

                // 获取当前 URL 和查询参数
                let url = new URL(location.href);
                let params = new URLSearchParams(url.search);

                // 设置或更新 page 参数
                params.set('page', page);

                // 将更新后的参数应用到 URL
                url.search = params.toString();

                // 首次不执行
                if (!first) {
                     // 跳转到新的 URL
                    location.href = url.toString();
                }
            }
        });

        form.on('select(category_select)', function(data){
            let url = data.value
            if (url) {
                window.location.href = url; // 跳转到选择的URL
            }
         }); 
         form.on('select(category_select_third)', function(data){
            let url = data.value
            if (url) {
                window.location.href = url; // 跳转到选择的URL
            }
         });  

    });
    	var swiper = new Swiper(".mySwiper", {
		navigation: {
			nextEl: ".next",
			prevEl: ".prev",
		},
		  
          slidesPerView: 4, // 固定显示 4 个幻灯片
    spaceBetween: 20, // 幻灯片之间的间距为 20px
		autoplay: false,
	});

</script>

<footer class="pt36 pb36 ">

      <div class="layui-main d-grid gap20 al-c white_c" >
         <a href="/" class="img_box  mb10">
            <img src="<?php echo htmlentities($config['footer_pic'],ENT_QUOTES); ?>">
         </a>
       
            <ul class="d-flex  jc-c al-c gap84 gap20-xs flex-wrap">
        
               <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$navValue): ?>

               <li lay-unselect>
                  <a href="<?php echo htmlentities($navValue['url'],ENT_QUOTES); ?>"> <?php echo htmlentities($navValue['title'],ENT_QUOTES); ?></a>
               </li>
               <?php endforeach; endif; else: echo "" ;endif; ?>

            </ul>

         <ul class="d-flex al-c jc-se flex-wrap">
            <li >
               <div class="item">
              <img class="d-fs" src="/public/home/images/tel.png">    联系电话：<span> <?php echo htmlentities($config['tel'],ENT_QUOTES); ?></span>
               </div>
            </li>
            <li >
               <div class="item">
                 <img class="d-fs" src="/public/home/images/email.png">  <span class="white-nowrap"> 邮箱：</span> <span><?php echo htmlentities($config['email'],ENT_QUOTES); ?></span>
               </div>
            </li>
            <li >
               <div class="item">
                 <img class="d-fs" src="/public/home/images/address.png"> <span class="white-nowrap"> 地址：</span> <span><?php echo htmlentities($config['address'],ENT_QUOTES); ?></span>
               </div>
            </li>

         </ul>
         <p class="ft14 text-align-center"><?php echo htmlentities($config['copy'],ENT_QUOTES); ?></p>
      </div>
</footer>
</body>

</html>